using System;
using System.Windows.Forms;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.Data.Odbc;
using System.Threading;

namespace caseDrawer
{	
	public class FlwGenerator : AbstractGenerator
	{
		IList<string> brickIds = new List<string>();
		int effectiveRowCount;
		
		public override void generateTestCase(){
			effectiveRowCount = getEffectiveRowCount();
			
			Writer.Senario 			= this.Senario;
			Writer.TestCaseFolder	= this.TestCaseFolder;
			
			Senario.Comment = "";
			Writer.write( base.generateTitle_Psv(Senario) , base.generateResults_Psv(Rows,'P'));
			Thread.Sleep(1000);
			//Writer.write(generateTitle_Ngv(Senario),generateResults_Ngv());

		}
		
		IList<string> generateResults_Psv(){
			IList<string> results = new List<string>();
			return results;
		}
		
		string generateTitle_Ngv(){
			return "";
		}
			
		IList<string> generateResults_Ngv(){
			IList<string> results = new List<string>();
			return results;
		}
			
		int getEffectiveRowCount(){
			int cnt =0;
			
			foreach(DataGridViewRow row in Rows){
				if(row.IsNewRow)
					break;
				cnt++;
			}
			
			return cnt;
		}
	}
}
